package com.tojabo.stack;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class BracketsApp {

	
	public static void main(String[] args) throws IOException {
		
		String input ;
		while(true){
			System.out.println("Enter string containing delimiters: ");
			System.out.flush();
			input = getString();
			if(input.equals("")){
				break;
			}
			
			BracketChecker checker= new BracketChecker(input);
			checker.check();
		}// end while
		
	}
	
	public static String getString() throws IOException{
		InputStreamReader in= new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(in);
		String s = br.readLine();
		return s;
	}

}
